<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%
        String path = request.getContextPath();
        response.setHeader("Pragma", "No-cache");
        response.setHeader("Cache-Control", "no-cache");
        response.setHeader("Expires", "0");

        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path;
    %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>网络服务平台</title>
    <script type="text/javascript" src="<%=basePath%>/flowplayer/flowplayer-3.2.8.min.js"></script>
</head>
<body>
<div>${video.name}</div>
<div>
    <a
            href="${video.location}"
            style="display:block;width:520px;height:330px"
            id="player">
    </a>

    <!-- this will install flowplayer inside previous A- tag. -->
    <script>
        flowplayer("player", "/flowplayer/flowplayer-3.2.9.swf");
    </script>
</div>
</body>
</html>